namespace Pdf2epub.BusinessLogic.Extractors.ExtractStrategy
{
    internal class ImageChunk : IPdfElementChunk
    {
        public ImageChunk(string imageFilePath, float xPos, float yPos)
        {
            ImageFilePath = imageFilePath;
            XPos = xPos;
            YPos = yPos;
            MidLineHorizontal = YPos;
        }

        public string ImageFilePath { get; private set; }

        public float XPos { get; private set; }

        public float YPos { get; private set; }

        public float MidLineHorizontal { get; private set; }
        public float MidLineVertical { get; private set; }
        public float Width { get; private set; }
        public float Height { get; private set; }

        public override string ToString()
        {
            return string.Format("TextChunk: {0}/{1} '{2}'", XPos, YPos, ImageFilePath);
        }
    }
}